#ifndef CTexture2D_____
#define CTexture2D_____

#include "ImageTGA.h"

//-----------------------------------------------------------------------------
class CTexture2D
//-----------------------------------------------------------------------------
{
  public:

	//-------------------------------------------------------------------------
	// members
	//-------------------------------------------------------------------------

	unsigned int m_nID;
	int			 m_nInternalFormat;
	unsigned int m_nPixelFormat;

	//-------------------------------------------------------------------------
	// constructors
	//-------------------------------------------------------------------------

	CTexture2D();

	//-------------------------------------------------------------------------
	// destructors
	//-------------------------------------------------------------------------

	~CTexture2D();

	//-------------------------------------------------------------------------
	// functions
	//-------------------------------------------------------------------------

	void Generate();
	void Destroy();
	void CreateTextureFromImage(CImageTGA &Image);
	void Bind();

};

//-------------------------------------------------------------------------
// tool functions
//-------------------------------------------------------------------------

void SetFilters(unsigned int min_filter, unsigned int mag_filter);
void SetWrap(unsigned int s_wrap, unsigned int t_wrap);
void SetEnvironmentMode(unsigned int blend_mode);

#endif